/* 
 * File:   RawData.cpp
 * Author: root
 * 
 * Created on October 26, 2015, 1:08 AM
 */

#include "RawData.h"

uint32 RawData::instanceCount;


RawData::RawData() {
    this->time = 0;
    this->xAxis = 0;
    this->yAxis = 0;
    this->zAxis = 0;
    this->accelerator = 0;
    ++this->instanceCount;
}

RawData::RawData(const RawData& orig) {
    *this = orig;
    ++this->instanceCount;
}

RawData::RawData(uint32 paraTime, double paraX, double paraY,double paraZ) 
{
    ++this->instanceCount;
    this->time  = paraTime;
    this->xAxis = paraX;
    this->yAxis = paraY;
    this->zAxis = paraZ;
    this->accelerator  = 0;
}

RawData& RawData::operator=(const RawData& orig)
{
  if ( this == &orig ) {
      return *this;
  } else {
      this->time  = orig.time;
      this->xAxis = orig.xAxis;
      this->yAxis = orig.yAxis;
      this->zAxis = orig.zAxis;
      this->accelerator  = orig.accelerator;
  }
  return *this;
}

RawData::~RawData() {
    --this->instanceCount;
}

